//
//  ViewController.m
//  AYTextViewDemo
//
//  Created by AY on 16/6/29.
//  Copyright © 2016年 Jasperay. All rights reserved.
//

#import "ViewController.h"
#import "AYTextView.h"

@interface ViewController ()

@property (nonatomic, strong) AYTextView *textView;

@end

@implementation ViewController

- (AYTextView *)textView
{
    if (!_textView) {
        _textView = [[AYTextView alloc] init];
        _textView.frame = CGRectMake(10, 100, 300, 200);
        _textView.placeholder = @"我是一段占位文字我是一段占位文字我是一段占位文字我是一段占位文字";
        _textView.placeholderColor = [UIColor orangeColor];
        _textView.font = [UIFont systemFontOfSize:15];
    }
    return _textView;
}
- (void)viewDidLoad {
    [super viewDidLoad];

    [self.view addSubview:self.textView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
